#include "NYStylePizzaStore.h"
#include "NYStyleCheesePizza.h"
#include "NYStyleGreekPizza.h"
#include "NYStylePepperoniPizza.h"

#include <assert.h>

Pizza * NYStylePizzaStore::createPizza(std::string type){
    Pizza *pizza;
    if (type == "Cheese") pizza = new NYStyleCheesePizza();
    else if (type == "Greek") pizza = new NYStyleGreekPizza();
    else if (type == "Pepperoni") pizza = new NYStylePepperoniPizza();
    else {
        std::cout << "Invalid type!" << std::endl;
        assert(false);
    }

    return pizza;
}